package cn.edu.hbsi.domain.result;

import cn.edu.hbsi.domain.entity.Headline;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 封装分页查询结果
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@Schema(title = "分页查询结果")
@ApiModel(description = "分页查询结果")
@Builder
public class PageResult implements Serializable {
//    @Schema(title = "当前页数据")
    @ApiModelProperty("当前页数据")
    private List<Headline> pageData; //当前页数据集合

    @ApiModelProperty("页码数")
    private Integer pageNum; //页码数

    @ApiModelProperty("每页大小")
    private Integer pageSize; //每页大小

    @ApiModelProperty("总页数")
    private Integer totalPage; //总页数

    //    @Schema(title = "总记录数")
    @ApiModelProperty("总记录数")
    private long totalSize; //总记录数
}
